import java.util.Stack;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2022-10-02
 * Time: 20:39
 */
public class Test_MyStack {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        myStack.push(3);
        myStack.push(4);
        int x = myStack.pop();
        System.out.println(x);
        x = myStack.pop();
        System.out.println(x);
        x = myStack.pop();
        System.out.println(x);

        int x3 = myStack.peek();
        System.out.println(x3);
        int x2 = myStack.peek();
        System.out.println(x2);


    }
}
